import Vue from 'vue'
import App from './App.vue'
import router from './router'  // 引入定义好的router
import VueRouter from 'vue-router'
import ElementUI from 'element-ui'
import axios from 'axios'
Vue.prototype.$axios = axios

Vue.use(VueRouter);
Vue.use(ElementUI);

//创建根实例
new Vue({
  el: '#app',
  components:{
    //组件名：组件对象
    App:App
  },
  template: '<App/>',
  router,
  render: h => h(App)
})
